$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  .shadow {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    object-fit: cover;
    z-index: -1;
  }

  .banner {
    width: 80vw;
    margin: 0 auto 3vw auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 8vw;

    .t1 {
      font-size: $fontSize_64;
      font-weight: 500;
    }

    .des {
      font-size: 20/19.2+vw;
      line-height: 1.6;
    }
  }

  .types {
    display: flex;
    width: 80vw;
    margin: 0 auto;

    a {
      border-radius: 35.5px;
      background: #FFF;
      color: #000;
      display: inline-block;
      padding: 0.7vw 2vw 0.8vw 2vw;
      margin-right: 1.5vw;

      .text {
        color: #0F1A2E;
        margin: 0;

        .inset {
          color: #fff;

        }
      }
    }

    .active {
      background-color: #000;
      color: #FFF;

      .text {
        color: #fff;

        .inset {
          color: #fff
        }
      }
    }
  }

  .list {
    width: 80vw;
    margin: 3vw auto 0 auto;
    display: flex;
    flex-wrap: wrap;
    transform: translateX(-1.7%);
    a {
      display: block;
      width: 31%;
      margin-left: 1.7%;
      margin-bottom: 3vw;

      .pic {
        width: 100%;
        overflow: hidden;

        img {
          width: 100%;
          transition: all 600ms;
        }
      }

      .text {
        padding: 1vw 1.5vw;
        border: 1px solid #E8E8E8;

        .title {
          color: #000;
          font-size: $fontSize_24;
          line-height: 1.5;
          word-break: break-all;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 1;
          overflow: hidden;
          // height: 4vw;
          transition: all 600ms;
        }

        .des {
          color: #63676C;
          font-size: $fontSize_16;
          line-height: 1.6;
          word-break: break-all;
          text-overflow: ellipsis;
          display: -webkit-box;
          -webkit-box-orient: vertical;
          -webkit-line-clamp: 3;
          overflow: hidden;
          margin-top: 10px;
        }

        .time {
          color: #999;
          font-size: $fontSize_16;
          margin-top: 2vw;
        }
      }

      &:hover {
        .pic {
          img {
            transform: scale(1.05);
          }
        }

        .text {
          .title {
            color: #02C4D0;
          }
        }
      }
    }
  }

  .pager {
    .box {
      display: flex;
      align-items: center;
      border-radius:30px;
      background: #F5F5F5;
      width: fit-content;
      margin: 0 auto;
      padding: 5px;
      a {
        width: 33/19.2+vw;
        height: 33/19.2+vw;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: $fontSize_16;
        color: #070909;
        transition: all 600ms;
        margin: 0 5px;
      }
      .active{
        background-color: #02C4D0;
        color:white;
      }
      a:last-child{
        background-color: #fff;
      }
    }
  }

  .section5 {
    width: 100%;
    position: relative;

    .bg {
      img {
        width: 100%;
      }
    }

    .text {
      position: absolute;
      bottom: 35%;
      left: 0;
      width: 100%;
      text-align: center;
      color: #000;
      font-size: $fontSize_40;
    }

    .btn {
      position: absolute;
      left: 50%;
      bottom: -.8vw;
      transform: translateX(-50%);

      .ball {
        width: 133/19.2+vw;
        height: 133/19.2+vw;
      }

      .en {
        img {
          width: 121/19.2+vw;
          height: 121/19.2+vw;
          animation: spin 14s linear infinite;
        }
      }

      @keyframes spin {
        100% {
          transform: rotate(1turn);
        }
      }

      .en,
      p {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
      }

      p {
        color: white;
        font-size: $fontSize_18;
      }

      .icon {
        position: absolute;
        right: 30/19.2+vw;
        top: 30/19.2+vw;
        width: 24/19.2+vw;
        height: 24/19.2+vw;
      }
    }
  }

  @media screen and (max-width: 1024px) {
    padding-top:80px;
    .banner{
      margin: 0 auto;
      width: 90%;
      padding-top: 0;
      flex-direction: column;
      align-items: flex-start;
      .t1{
        font-size: 20px;
      }
      .des{
        font-size: 14px;
        margin-top: 10px;
      }
    }
    .types{
      width: 90%;
      margin: 20px auto;
      a{
        padding: 5px 15px;
      }
    }
    .list{
      width: 90%;
      margin: 0 auto;
      transform: translateX(0);
      .item{
        width: 100%;
        margin-left: 0;
        margin-bottom: 20px;
        .text{
          padding: 10px 15px;
          .title{
            font-size: 16px;
            height: auto;
          }
          .des{
            font-size: 14px;
            margin: 20px 0;
          }
          .time{
            font-size: 14px;
          }
        }
      }
    }
    .pager{
      .box{
        a{
          width: 30px;
          height: 30px;
          font-size: 16px;
        }
      }
    }
    .section5{
      margin-bottom: 30px;
      .text{
        font-size: 16px;
        bottom:40%;
      }
      .btn{
        bottom:-30px;
        .ball{
          width: 60px;
          height: 60px;
        }
        .en{
          img{
            width: 55px;
            height: 55px;
          }
        }
        .icon{
          width: 15px;
          height: 15px;
          right:10px;
          top:10px; 
          display: none;
        }
        p{
          font-size: 12px;
        }
      }
    }
  }
}